:root {
	--sidebar-width: 200px;
	--primary-color: #2196F3;
	--correct-color: #4CAF50;
	--error-color: #f44336;
	--secondary-color: #3498db;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	display: flex;
	height: 100vh;
}

/* 左侧分类导航 */
#category-nav {
	width: var(--sidebar-width);
	background: #f5f5f5;
	padding: 5px 10px;
	overflow-y: auto;
	position: fixed;
	height: 100%;
}

.category-item {
	margin: 5px 0;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.3s;
	font-size: 10px;
	padding: 5px 2px;
}

.category-item:hover, .category-item.active {
	background: var(--primary-color);
	color: white;
}

/* 右侧主内容区 */
#main-content {
	flex: 1;
	margin-left: var(--sidebar-width);
	padding: 20px;
	height: 100vh;
	overflow-y: auto;
}

/* 题目卡片 */
.question-card {
	margin-bottom: 12px;
	/* padding: 20px;
            border: 1px solid #ddd;
            border-radius: 8px; */
	font-size: 10px;
}

.options-container {
	margin: 0 0;
}

.option-item {
	display: block;
	margin: 5px 0;
	padding: 5px 0;
	padding-left:10px;
	 border: 1px solid #ddd;
	/* border-radius: 4px; */
	cursor: pointer;
	margin-left: 10px;
}

input {
	vertical-align: middle;
	margin-top: -2px;
}

.correct {
	background: #e8f5e9;
	border-color: var(--correct-color);
}

.incorrect {
	background: #ffebee;
	border-color: var(--error-color);
}

/* 统计弹窗 */
.stats-modal {
	display: none;
	position: fixed;
	right: 20px;
	bottom: 20px;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
}

.answer-btn {
	padding: 3px 6px;
	background-color: var(--secondary-color);
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: opacity 0.3s ease;
	margin-left: 25px;
	font-size: 12px;
}

.answer-info {
	padding-left: 25px;
	color: red;
}

button[type="button"]:hover {
	opacity: 0.9;
}

.load-more {
	text-align: center;
	padding: 20px;
	color: #666;
}

#toggle-stats {
	position: fixed;
	right: 20px;
	bottom: 20px;
	padding: 12px 24px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 24px;
	cursor: pointer;
}